package cn.lbd.kill.model.mapper;

import cn.lbd.kill.model.entity.RandomCode;
import cn.lbd.kill.model.entity.RandomCodeExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface RandomCodeMapper {
    long countByExample(RandomCodeExample example);

    int deleteByExample(RandomCodeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(RandomCode record);

    int insertSelective(RandomCode record);

    List<RandomCode> selectByExample(RandomCodeExample example);

    RandomCode selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") RandomCode record, @Param("example") RandomCodeExample example);

    int updateByExample(@Param("record") RandomCode record, @Param("example") RandomCodeExample example);

    int updateByPrimaryKeySelective(RandomCode record);

    int updateByPrimaryKey(RandomCode record);

    int batchUpdate(@Param("recordList") List<RandomCode> recordList);

    int batchInsert(@Param("recordList") List<RandomCode> recordList);

    int batchDelete(@Param("ids") Integer[] ids);
}